package com.ytlz.dmcs.model.system.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.PersistenceConstructor;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection="sys_role")
public class SysRole {
	@Id
	private String id;
	
	@Indexed(unique = true)
	private String name;
	
	private String desc;
	
	@PersistenceConstructor
	public SysRole(String name, String desc) {
		this.name= name;
		this.desc = desc;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	
}
